From 6a388966a3f7187cb738457c3a9650730517173a Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Fri, 21 Feb 2025 10:30:04 +0100 Subject: [PATCH] UserStatusSelector: set focusPolicy on accept button otherwise the status text won't be set on macOS as the text box never loses its focus `Qt.StrongFocus` is the default focusPolicy on all platforms except for macOS, there it's `Qt.TabFocus` the other buttons of the UserStatusSelector don't need that focusPolicy as they do not modify the model from values in the view see also: - https://bugreports.qt.io/browse/QTBUG-110295 - https://codebrowser.dev/qt6/qtdeclarative/src/quicktemplates/qquickabstractbutton.cpp.html#_ZN27QQuickAbstractButtonPrivate4initEv Signed-off-by: Jyrki Gadinger --- src/gui/UserStatusSelector.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/UserStatusSelector.qml b/src/gui/UserStatusSelector.qml index 9ce7043d0..15abf6595 100644 --- a/src/gui/UserStatusSelector.qml +++ b/src/gui/UserStatusSelector.qml @@ -341,6 +341,7 @@ ColumnLayout { Layout.fillHeight: true primary: true colored: true + focusPolicy: Qt.StrongFocus text: qsTr("Set status message") onClicked: userStatusSelectorModel.setUserStatus() } -- 2.30.2